#ifndef USER_H
#define USER_H

#include <QString>
#include <QDebug>

class UserSession
{
public:
    static UserSession& getInstance();

    void loginUser(const QString &username, const QString& userType);
    void logoutUser();

    bool isLoggedIn() const;

    QString getCurrentUsername() const;
    QString getCurrentUserType() const;

    void setCurrentUsername(const QString& username);
    void setCurrentUserType(const QString& userType);

private:
    UserSession();

    struct User
    {
        QString username;
        QString userType;
    } currentUser;

    bool loggedIn;
};

#endif // USER_H
